#ifndef INSRSPHEADERRECVHANDLERB_H
#define INSRSPHEADERRECVHANDLERB_H

#include "InsRspHeaderRecvHandler.h"

class InsRspHeaderRecvHandlerB:public InsRspHeaderRecvHandler
{
public:
	InsRspHeaderRecvHandlerB(DWORD recvCount):InsRspHeaderRecvHandler(),m_oriRecvCount(recvCount){}

	~InsRspHeaderRecvHandlerB(){}

protected:
	virtual ExecuteResultCode OnRedirectConnect(ClientContext&,OVERLAPPED*,const InsteadHttpUrl&);

	virtual ExecuteResultCode OnExecuteError(ClientContext&,OVERLAPPED*,ExecuteResultCode);

	virtual ExecuteResultCode OnSendResponseHeader(ClientContext&,HttpResponseHeader&);

private:
	static log4cplus::Logger log;

	DWORD m_oriRecvCount;
};

#endif